Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WAL write duration metric #153

Merged
merged 2 commits into from
Mar 9, 2020
Merged

Add WAL write duration metric #153

merged 2 commits into from
Mar 9, 2020

Conversation

hawkingrei
Copy link
Member

Add WAL write duration metric

UCP #5751

Signed-off-by: Wangweizhen hawking.rei@gmail.com

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Mar 7, 2020
Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
@hawkingrei
Copy link
Member Author

@yiwu-arbug PTAL

@@ -1147,6 +1147,7 @@ Status DBImpl::WriteToWAL(const WriteThread::WriteGroup& write_group,
// Same holds for all in the batch group
size_t write_with_wal = 0;
WriteBatch* to_be_cached_state = nullptr;
StopWatch write_sw(env_, stats_, DB_WRITE_WAL_TIME);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the same stopwatch to ConcurrentWriteToWAL as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, have added.

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Copy link
Collaborator

@yiwu-arbug yiwu-arbug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will merge once CI passes.

@yiwu-arbug yiwu-arbug merged commit 906258c into tikv:6.4.tikv Mar 9, 2020
@hawkingrei hawkingrei deleted the add_wal_duration_metric branch March 9, 2020 06:15
yiwu-arbug pushed a commit that referenced this pull request Mar 20, 2020
Add WAL write duration metric

UCP [facebook#5751](tikv/tikv#6541)

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
@tabokie tabokie mentioned this pull request May 9, 2022
39 tasks
tabokie pushed a commit to tabokie/rocksdb that referenced this pull request May 12, 2022
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
tabokie pushed a commit that referenced this pull request May 12, 2022
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Sep 24, 2024
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
@v01dstar v01dstar mentioned this pull request Sep 24, 2024
v01dstar pushed a commit to v01dstar/rocksdb that referenced this pull request Sep 27, 2024
Add WAL write duration metric

UCP tikv/tikv#6541

Signed-off-by: Wangweizhen <hawking.rei@gmail.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants